package com.mgface.framework.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;


/**
 *
 * 参考:https://github.com/Netflix/Hystrix/wiki/Dashboard
 *
 * 访问http://192.168.1.101:8088/hystrix得到仪表盘（控制台）
 * 在输入框输入包含了hystrix（断路器）的项目地址，例如：（ms-feign-hystrix项目）http://192.168.1.101:7912/hystrix.stream
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrixDashboard
public class DashboardAppliction {
    public static void main(String[] args) {
        SpringApplication.run(DashboardAppliction.class,args);
    }
}
